package com.example.isoftservice.mapper;

import com.example.isoftservice.pojos.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface UserMapper {
    List<Map<String,Object>> selectUserList(User user);
    User selectUserById(Integer userId);

    User login(@Param("username") String username);

    User selectByEmail(User user);

    int insertUser(User user);

    int deleteUserByIds(Integer[] ids);

    int updateUserById(User user);

    int updateUserPassword(User user);

}
